home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / pcw.zip / PCW.I < prev    next >
Text File  |  1991-12-21  |  3KB  |  73 lines

  1. /*$no list *//* $no trace <<<pcw.i>>> */
  2. /**********************************************************/
  3. /* File Id.                  Pcw.I.                       */
  4. /*                                                        */
  5. /*           (c) Copyright 1989-90 by Stan Milam          */
  6. /*                                                        */
  7. /* Comments:  This is the view the internal window soft-  */
  8. /* ware has of a window.  Memory for this structure is    */
  9. /* "malloced" with every wpush(), wframe(), & wexplode(). */
  10. /**********************************************************/
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16. #ifndef __POWERC
  17. #  pragma pack(1)
  18. #  ifdef __ZTC__
  19. #     pragma ZTC align 1
  20. #  endif
  21. #endif
  22.  
  23. #ifdef WNDPTR
  24. #   undef WNDPTR
  25. #endif
  26.  
  27. /* The main window structure */
  28.  
  29. typedef struct wndptr {
  30.              char far *wbuffer;             /* Buffer for saved screen */
  31.              char far *wsave;               /* Buffer for saved window */
  32.              int  urow;                     /* Upper row of window */
  33.              int  ucol;                     /* Upper col of window */
  34.              int  lrow;                     /* Lower row of window */
  35.              int  lcol;                     /* Lower col of window */
  36.              int  hideflag;                 /* Indicate if window hidden */
  37.              int  page;                     /* Page the window is in */
  38.              int  attr;
  39.            /*  char attr;*/                     /* Window color when framing */
  40.              int  level;                    /* Window position in list */
  41.     struct wndptr *next;                    /* Point to window after */
  42.     struct wndptr *back;                    /* Point to window before */
  43. } wnd_pointer_handle;
  44.  
  45. #define WNDPTR wnd_pointer_handle
  46.  
  47. /*  Tscrn.Asm Assembler Routines */
  48.  
  49. void far Tputs (int far *scrnptr, char far *strptr, int attr);
  50. void far Tvputs(int far *scrnptr, char far *strptr, int attr);
  51. void far Tputchar(int far *scrnptr, int attrchar);
  52. void far SaveScrn(int rows, int cols, int far *scrnptr, char far *ptr);
  53. void far RestoreScrn(int rows, int cols, int far *scrnptr, char far *ptr);
  54. void far TextFill(int rows, int cols, int far *scrnptr, int attrchar);
  55. void far Tvertchar(int count, int charattr, int far *scrnptr);
  56. void far Thorzchar(int count, int charattr, int far *scrnptr);
  57. void far Tchg_Attr(int far *scrnptr, int count, int attr);
  58. void far Tscroll(int far *srce,int far *dest,int rows,int cols,int dir);
  59. #ifdef __POWERC
  60. void crt_lock( void );
  61. void crt_unlock( void );
  62. #endif /* Power C */
  63. #ifndef __POWERC
  64. #  pragma pack()
  65. #  ifdef __ZTC__
  66. #    pragma ZTC align
  67. #  endif
  68. #endif
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. /*$list *//*$trace <<<pcw.i>>> */
  73.